import http from "@/utils/request.js"


/**
 * 
 * @param {Object} params 一个请求列表参数对象 page count calss三个属性
 * @returns 
 */

// 获取学生列表
export  const getStuListApi = (params) => http.get('/students/getstulist',{params}) 

// 添加学生
export const addStuApi = (data) => http.post('/students/addstu',data)

// 删除学生
export const delStuApi = sId => http.get('/students/delstu?sId='+sId)

// 修改学生
export const editStuApi = data => http.post('/students/updatestu',data)

// 搜索学员
export const searchStuApi = params => http.get('/students/searchstu',{params})

// 上传学员头像
export const uploadStuAvatarApi = data => http.post('/students/uploadStuAvatar',data)

